/**
 * Created by lqd6031 on 2016/9/28.
 */
fish.ajax({
	url: '//member.ly.com/center/gradeajax/index',
	type: "jsonp",
	fn: function (data) {
		if (data && data.Success) {
			if (fish.dom('.member-level')) {
				fish.dom('.member-level').className = 'member-level level' + data.ReturnValue.Grade;
			}
			if (fish.dom('.mem_pic')) {
				fish.dom('.mem_pic').className = 'mem_pic mem_pic' + data.ReturnValue.Grade;
			}
			if (fish.dom('.use_name em')) {
				fish.one('.use_name em').html(data.ReturnValue.GradeName + '会员');
			}
			if (fish.dom('.meb_name .mem_grade span')) {
				fish.dom('.meb_name .mem_grade span').className = 'level_' + data.ReturnValue.Grade;
			}
			if (fish.dom('.name_box .mem_grade span')) {
				fish.dom('.name_box .mem_grade span').className = 'lev_' + data.ReturnValue.Grade;
			}

		}

	}
});